package app.qrcode.browser.todoapp.data.models

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize


/**
 * Created by YiGo on 2022/5/6.
 */
@Entity(tableName = "todo_table")
@Parcelize
data class ToDoData(
    @PrimaryKey(autoGenerate = true)
    var id: Int,
     var title: String,
    var priority: Priority,
    var taskStatus: TaskStatus,
    var descriptor: String,
    @ColumnInfo(name = "isNoticed", defaultValue = "0") var isNoticed: Boolean = false,
    @ColumnInfo(name = "date", defaultValue = "0") var date: String? = null,
    @ColumnInfo(name = "time", defaultValue = "0") var time: String? = null
) : Parcelable